home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
vol6n19.arc
/
SHOWVECT.SCR
< prev
next >
Wrap
Text File
|
1987-10-31
|
719b
|
36 lines
N SHOWVECT.COM
A 100
MOV AH,35 ;get interrupt vector in es & bx
MOV AL,24 ;for Int 24h
INT 21 ; thru DOS
MOV SI,BX ;save offset in SI
MOV AX,ES ;put segment in AX
CALL 0119 ;write to screen
MOV AH,02 ;write a
MOV DL,3A ; ':' char
INT 21 ; thru DOS
MOV AX,SI ;put offset in AX
CALL 0119 ;write to screen
RET ;near return to DOS
MOV BX,AX ;HEX4PRN - write AX to screen
MOV CL,04 ;use for shift count
MOV CH,04 ;number of digits to print
ROL BX,CL ;print high digit first
MOV AL,BL
AND AL,0F ;lower 4 bits only
ADD AL,90 ;convert AL to ASCII
DAA
ADC AL,40
DAA
MOV DL,AL ;put char in DL
MOV AH,02 ;write DL to CON
INT 21 ; thru DOS
DEC CH ;char counter
JNZ 011F ;loop
RET
R CX
36
W
Q